<?php
$prefix = $session->read('Auth.User.prefix');
if (!isset($parentNav))
    $parentNav = null;
?>
<div class="myMenu">
    <table class="rootVoices" cellspacing='0' cellpadding='0' border='0'>
        <tr>
            <?php if ($prefix == ITS_PREFIX) : ?>
                <?php echo $this->element('tabmenus/its_menu'); ?>

            <?php elseif ($prefix == CUST_PREFIX) : ?>
                <?php echo $this->element('tabmenus/cust_menu'); ?>

            <?php elseif ($prefix == SUPPLIER_PREFIX) : ?>
                <?php echo $this->element('tabmenus/sup_menu'); ?>
            
            <?php endif; ?>
        </tr>
    </table>
</div>

<script type="text/javascript" >
    $j(function(){
        $j(".myMenu").buildMenu({
            menuWidth:150, openOnRight: false, menuSelector: ".menuContainer", iconPath: "img/menu/",
            hasImages:false, fadeInTime:100, fadeOutTime:300,
            minZindex:"auto", adjustTop:10, opacity:.95, shadow:true, openOnClick:true, closeOnMouseOut:true
        });
    });
</script>